<%@ page import="org.apache.commons.lang.StringUtils"%>
<%@ page import="com.hz.supermanage.dao.*,com.hz.supermanage.bean.*" %>
<%@ page language="java" pageEncoding="UTF-8" contentType="text/html;charset=UTF-8" %>
<%
request.setCharacterEncoding("UTF-8");
    String uuid = request.getParameter("uuid");
    String parentOrgName = "";
    if (StringUtils.isBlank(uuid)) {
        //throw new BusinessException("单位标识不能为空");
    }
    OrganizationDao dao = new OrganizationDao();
    Hzsysorganization dep = new Hzsysorganization();
    try {
    	dep = dao.queryNodeInfo(uuid);
        String parentOrgId = dep.getParentid();
         if (StringUtils.isNotBlank(parentOrgId)&&!"-1".equals(parentOrgId)) { //读取父单位的名称
        	Hzsysorganization par = dao.queryNodeInfo(parentOrgId);
            parentOrgName = par.getDepname();
        }else {
            parentOrgName = "根单位";
        }
    }catch(Exception ex) {
    	
    }
%>
<?xml version="1.0" encoding="UTF-8"?>
<xuice>
    <%=dao.generalTMIXml(dep)%>
    <parentname><![CDATA[<%=parentOrgName%>]]></parentname>
</xuice>